package com.jdk.learn.exam;

/**
 * Created by bgt on 2018/2/21.
 *
 * 考察类对象与实例对象
 */
public class Two {

    int x=10;
    static  int y=20;
    public static void main(String[] args) {
        Two two1=new Two();
        Two two2=new Two();

        two1.x *=2;
        two1.y *=3;

        two2.x +=4;
        two2.y +=5;

        System.out.println(two1.x);
        System.out.println(two1.y);
        System.out.println(two2.x);
        System.out.println(two2.y);
        /**
         20
         65
         14
         65
         *
         */
    }
}
